package com.wx.chapter11.homework.homework07;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/6/15 - 11:02
 */
public class Car {
    double temperature;//温度

    class Air {//成员内部类
        public void flow() {
            if (temperature >= 40) {
                System.out.println("空调吹冷风");
            } else if (temperature <= 0) {
                System.out.println("空调吹暖气");
            } else {
                System.out.println("关闭空调");
            }
        }
    }

    public Car(double temperature) {
        this.temperature = temperature;
    }
}
